import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/demand/manage/balance/list',
    method: 'get',
    params: data
  })
}

export function listByShop(data) {
  return request({
    url: '/demand/manage/shop',
    method: 'get',
    params: data
  })
}

export function listByUser(data) {
  return request({
    url: '/demand/manage/user',
    method: 'get',
    params: data
  })
}

export function item(data) {
  return request({
    url: '/demand/item',
    method: 'get',
    params: data
  })
}

export function addShopBalance(data) {
  return request({
    url: '/demand/addShopBalance',
    method: 'post',
    data
  })
}


export function addOrUpdate(data) {
  return request({
    url: '/user/addOrUpdate',
    method: 'post',
    data
  })
}